package com.lazy.web.controller;

import com.alibaba.fastjson.JSONObject;
import com.lazy.utils.utils.Result;
import com.lazy.utils.utils.ResultUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zk
 * @since 2018/5/25 14:06
 */
@RestController
@RequestMapping(value = "/test")
public class TestController {

	@PostMapping(value = "/postTest")
	public Result postTest(String name ,String password){
		JSONObject json = new JSONObject();
		json.put("name",name);
		json.put("password",password);
		return ResultUtils.objectResult(json);
	}

}
